package model.area;

public class Building implements Area {
	protected String name;
	protected float rent = 0;
	private float serviceCosts;

	public Building(String name, float rent, float serviceCosts) {
		this.name = name;
		this.rent = rent;
		this.serviceCosts = serviceCosts;
	}

	public float getServiceCosts() {
		return serviceCosts;
	}

	public void setServiceCosts(float serviceCosts) {
		this.serviceCosts = serviceCosts;
	}

	@Override
	public String getName() {
		return name;
	}

	@Override
	public void setName(String name) {
		this.name = name;

	}

	@Override
	public float getRent() {
		return rent;
	}

	@Override
	public void setRent(float rent) {
		this.rent = rent;
	}

	@Override
	public void accept(AreaVisitor visitor) {
		visitor.visit(this);
	}

}
